home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 2,801 to 2,900 / aol-file-protocol-4400-2801-to-2900.zip / AOLDLs / C++ Files Library / 3D & Offscreen for MacApp 3 / 3D & Offscreen Sample.sea / 3D & Offscreen Sample / M3DSample.cp < prev    next >
Text File  |  1993-05-10  |  2KB  |  77 lines

  1.  
  2. #ifndef        __MACAPP__
  3. #include    <MacApp.h>
  4. #endif
  5. #ifndef        __UPRINTING__
  6. #include    <UPrinting.h>
  7. #endif
  8. #ifndef        __UGRIDVIEW__
  9. #include    <UGridView.h>
  10. #endif
  11. #ifndef        __UTEVIEW__
  12. #include    <UTEView.h>
  13. #endif
  14. #ifndef        __UDIALOG__
  15. #include    <UDialog.h>
  16. #endif
  17. #ifndef        __GRAF3D__
  18. #include    <Graf3D.h>
  19. #endif
  20. #ifndef        __UAPPLICATION__
  21. #include    <UApplication.h>
  22. #endif
  23. #ifndef        __UGEOMETRY__
  24. #include    <UGeometry.h>
  25. #endif
  26. #ifndef        __T3DObjectView__
  27. #include    "T3DObjectView.h"
  28. #endif
  29. #ifndef        __T3DView__
  30. #include    "T3DView.h"
  31. #endif
  32. #ifndef        __TOffscreenAdorner__
  33. #include    "TOffscreenAdorner.h"
  34. #endif
  35. #ifndef        __TSquareWindow__
  36. #include    "TSquareWindow.h"
  37. #endif
  38. #ifndef        __UMACAPPUTILITIES__
  39. #include    <UMacAppUtilities.h>
  40. #endif
  41.  
  42. Port3DPtr    gThePort3DPtr;
  43.  
  44. //----------------------------------------------------------------------------------------
  45. // main: 
  46. //----------------------------------------------------------------------------------------
  47.  
  48. void main()
  49. {
  50.     macroDontDeadStrip(TOffscreenAdorner);
  51.     macroDontDeadStrip(T3DObjectView);
  52.     macroDontDeadStrip(T3DView);
  53.     macroDontDeadStrip(TSquareWindow);
  54.  
  55.  
  56.     TApplication *g3DApplication;
  57.  
  58.     InitToolBox();
  59.  
  60.     if (ValidateConfiguration(gConfiguration))
  61.     {
  62.         InitUMacApp(12);                            // Initialize MacApp; 12 calls to MoreMasters
  63.  
  64.         InitUTEView();
  65.         InitUDialog();
  66.         InitUGridView();
  67.         InitGrf3d (&gThePort3DPtr);
  68.  
  69.         g3DApplication = new TApplication;
  70.         g3DApplication->IApplication('    ', '    ');
  71.         g3DApplication->Run();
  72.     }
  73.     else
  74.         StdAlert(phUnsupportedConfiguration);
  75. } // main
  76.  
  77.